<div class="container-fluid background9">
<div class="container">
    <div class="row clearfix">
        <div class="col-xs-12 column">
            <?php
                    if(!isset($_SESSION['username'])){
                        echo'<h6><a href="__ROOT__/index.php"  style="color:#999;"><font class="glyphicon glyphicon-home">首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="__ROOT__/index.php/home/form/login"  style="color:#999;"><font>登录</font></a>&nbsp;|&nbsp;
                        <a href="__ROOT__/index.php/home/form/register"  style="color:#999;"><font>注册</font></a></h6>';
                        }
                    else{
                        $username= $_SESSION['username'];
                        $userrank= $_SESSION['userrank'];
                        echo  "<h6><font style='float:right;'>".$userrank."&nbsp;".$username."&nbsp;&nbsp;
                        <a href='__ROOT__/index.php/home/form/logout' style='color:#999;'>退出</font>
                        <a href='__ROOT__/index.php' style='color:#999;'><font class='glyphicon glyphicon-home'>首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </h6>";
                            }
            ?>
        </div>
    </div>
</div>
</div>
<div class="container-fluid">
    <div class="container">
		<div class="row clearfix">
            <div class="col-xs-12 column" align="center">
                <img src="__STYLE__/image/logo.png" class="img-responsive margin15" />
            </div>
            <div class="col-xs-offset-4 col-xs-4 column" align="center" style="padding-top:13px;">
                <form role="search" class="form-horizontal" action="__ROOT__/index.php/home/form/searchresult" method="get" style="margin-bottom:0px;">
                    <div class="input-group">
                        <input id="query" name="name" type="text" placeholder="搜索 商品..." class="form-control" required />
                        <span class="input-group-btn">
                            <button class="btn button2" type="submit" style="top:0px;">搜索</button>
                        </span>
                    </div>
                </form>
            </div>
		</div>
	</div>
</div>
<div class="container">
    <div class="row clearfix">
        <div class="col-xs-12 column padding3 padding1" align="center">
            <a href="__ROOT__/index.php">首页</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="__ROOT__/index.php/home/form/searchresult?name=">全部</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="__ROOT__/index.php/home/form/searchresult?name=新">新款</a>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="__ROOT__/index.php/home/form/searchresult?name=促销">促销</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="__ROOT__/index.php/home/form/searchresult?name=男">男士</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="__ROOT__/index.php/home/form/searchresult?name=女">女士</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="__ROOT__/index.php/home/form/cart">购物车</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="__ROOT__/index.php/home/form/orderlist">订单</a>
        </div>       
    </div>
</div>
